package com.autoapitest.system.domain;

import com.autoapitest.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

public class EnvironmentBase extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 数据源主键
     */
    @TableId(value = "base_Id", type = IdType.ASSIGN_UUID)
    private String baseId;

    /**
     * 环境名称
     */
    private String apiName;

    /**
     * ip地址
     */
    private String baseIp;

    /**
     * 端口
     */
    private Integer basePort;

    /**
     * 协议类型 现仅支持http
     */
    private String baseAgreement;

    /**
     * 状态 0 可用 1不可用
     */
    private Integer baseState;

    /**
     * 逻辑删除字段
     */
    @TableField("Is_Deleted")
    private Integer isDeleted;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getBaseId() {
        return baseId;
    }

    public void setBaseId(String baseId) {
        this.baseId = baseId;
    }

    public String getApiName() {
        return apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    public String getBaseIp() {
        return baseIp;
    }

    public void setBaseIp(String baseIp) {
        this.baseIp = baseIp;
    }

    public Integer getBasePort() {
        return basePort;
    }

    public void setBasePort(Integer basePort) {
        this.basePort = basePort;
    }

    public String getBaseAgreement() {
        return baseAgreement;
    }

    public void setBaseAgreement(String baseAgreement) {
        this.baseAgreement = baseAgreement;
    }

    public Integer getBaseState() {
        return baseState;
    }

    public void setBaseState(Integer baseState) {
        this.baseState = baseState;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "EnvironmentBase{" +
                "baseId='" + baseId + '\'' +
                ", apiName='" + apiName + '\'' +
                ", baseIp='" + baseIp + '\'' +
                ", basePort=" + basePort +
                ", baseAgreement='" + baseAgreement + '\'' +
                ", baseState=" + baseState +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
